<div id="content-b" class="container_12">
    <div class="grid_8 push_2">
        <fieldset>
            <legend>Account Login</legend>
            <p class="align-justify">
            ORPMS is an exclusive website for the University of the Immaculate Conception - ITE Program. To access the website, please login with the username and password given to you by an authorized UIC-ITE staff.
            </p><br />
            <form action="<?php echo base_url(); ?>account/checkuser" method="POST">
                <table class="form-table">
                    <?php
                    
                    if(isset($_GET['err'])) {
                        echo '
                        <tr>
                        <td colspan="2">
                        <div class="error">
                        <img src="'.base_url().'/images/error.png" alt="error" class="valign-middle" />
                        <span class="valign-middle">';
                        switch($_GET['err']) {
                            case 1:
                                echo "Account inactive. Please activate your account!";
                                break;
                            case 2:
                                echo "The username and/or password you provided is invalid!";
                                break;
                            default:
                                echo "An error occured. Please try again.";
                        }
                        echo '
                        </span>
                        </div>
                        </td>
                        </tr>';
                    }
                    
                    ?>
                    <tr>
                        <td class="align-right">Username:&nbsp;</td>
                        <td><input type="text" name="username" class="form-input" required /></td>
                    </tr>
                    <tr>
                        <td class="align-right">Password:&nbsp;</td>
                        <td><input type="password" name="password" class="form-input" required /></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <input type="submit" name="submit" value="Login" class="form-button valign-middle" />
                            <input type="checkbox" name="remember" value="1" class="valign-middle" /><span class="valign-middle">keep me signed in</span>
                        </td>
                    </tr>
                </table>
            </form>
        </fieldset>
    </div>
</div>